/*入库主单
*     1. insert
* */


var dbUtil = require('./dbUtil')

function insert(stock_in,callback) {
    var sql = "insert into stock_in(`user_id`,in_type,stock_in_date) " +
        "value(?,?,?)  ";
    var params=[stock_in.user_id,stock_in.in_type,stock_in.in_date];
    dbUtil.query(sql,params,function (error,result) {
        callback(result);
    })

}

module.exports={
    insert
}